<div class="container">
  <div class="alert alert-dismissable alert-danger" data-ng-show="logInFail">
    <button type="button" class="close" data-dismiss="alert">×</button>
    <strong>登陆失败!</strong>请重新检查用户名和密码并再次输入!
  </div>
  <div class="row">
    <div class="col-xs-offset-2 col-xs-8">
      <div class="well">
        <i class="fa fa-flag fa-2x pull-left" ></i>
        <form class="bs-example form-horizontal">
          <fieldset>
            <legend>登陆</legend>
            <div class="form-group">
              <label for="inputEmail" class="col-xs-2 control-label">姓名</label>
              <div class="col-xs-10">
                <input type="text" class="form-control" required data-ng-model="user.name" id="inputEmail" placeholder="用户名">
              </div>
            </div>
            <div class="form-group">
              <label for="inputPassword" class="col-xs-2 control-label">密码</label>
              <div class="col-xs-10">
                <input type="password" class="form-control" required data-ng-model="user.psw"  id="inputPassword" placeholder="密码">
                <div class="checkbox">
                  <label>
                    <input type="checkbox" data-ng-model="rememberme"> 记住我
                  </label>
                  <span>&nbsp;|&nbsp;没有账号?</span>
                  <a href="#">注册账号</a>
                </div>
              </div>
            </div>
            <div class="form-group">
              <div class="col-xs-10 col-xs-offset-2">
                <button type="submit" class="btn  btn-primary btn-block" data-ng-click="login()"> 登&nbsp;&nbsp;录 </button>
              </div>
            </div>
          </fieldset>
        </form>
      </div>
    </div>
  </div>
</div>